/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.support.dev.order.notify;

import com.yanlight.support.event.AbstractEvent;

/**
 * 
 * @author haolw
 * @time 2018/02/08
 */
public class DevOrderNotifyEvent extends AbstractEvent {
	private static final long serialVersionUID = -4614574004568947465L;
	private Integer operationId;
	private String notifyUrl;
	private String outTradeNo;
	private Integer payType;
	private Integer totalFee;
	private String payTime;

	public Integer getOperationId() {
		return operationId;
	}

	public void setOperationId(Integer operationId) {
		this.operationId = operationId;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Integer getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(Integer totalFee) {
		this.totalFee = totalFee;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public DevOrderNotifyTask toTask() {
		DevOrderNotifyTask task = new DevOrderNotifyTask();
		task.setNotifyUrl(this.getNotifyUrl());
		task.setOutTradeNo(this.getOutTradeNo());
		task.setPayTime(this.getPayTime());
		task.setPayType(this.getPayType());
		task.setTotalFee(this.getTotalFee());
		return task;
	}
}